package 作业3.test3;

class Circle extends Shape {
    private double r;
    Circle(){}
    Circle(double r){
        this.r=r;
    }
    public double getR(){
        return r;
    }
    public void showArea(){
        area=3.14*getR()*getR();
        System.out.println(area);
    }
}
